one liner if else replacement in python

29

>>> a = "Hello" if foo() else "Goodbye"

Comments

Submit
0 Comments